package com.zrs.gmall.payment.process.impl;

import com.zrs.gmall.payment.process.PayHandler;
import org.springframework.stereotype.Component;

/**
 * @author ZhaoRuiSheng
 * @create 2023/3/22 20:38
 */
@Component("aliPay")
public class AliPayHandler implements PayHandler {

    /**
     * 支付宝支付创建支付页面方法
     * @param orderId
     * @return
     */
    @Override
    public Boolean createPayHtml(Long orderId) {
        System.out.println("调用支付宝支付api接口生成支付宝支付页");
        return true;
    }

    @Override
    public void preferentialScheme() {
        System.out.println("支付宝支付优惠5000");
    }
}













